import Role from '../schema/role.js'
import Sequelize from 'sequelize'

const Op = Sequelize.Op

export async function getUserIdByRole(role){
    return await Role.findOne({
        where:{
            role: {
                [Op.eq]: role
            }
        }
    })
}